<template>
	<div class="bg-light pb">
      <div class="container-title-special">商品图片<span class="font-red ml">( 请上传图片 )</span></div>
      <PictureEditItem :uploadList = "uploadList" :maxlength = "maxlength" @uploadPic = "uploadPic"></PictureEditItem>   
    </div>
</template>
<script>
import PictureEditItem from "~/PictureEditItem";
export default {
  components: {
    PictureEditItem
  },
  data() {
    return {
      uploadList: [],
      maxlength: 1,
      idsArr:[]
    };
  },
  methods: {
    uploadPic(val) {
      this.uploadList = []
      val.forEach((item, index) =>{
        item.sort = index
        this.uploadList.push(item);
      })
    }
  }
};
</script>